package 月度_季度_年度数据;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CantVisitTheWePageException extends Exception{

    public CantVisitTheWePageException(){
        super("网站拒绝访问");
        Calendar calendar = Calendar.getInstance();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
        System.out.println(formatter.format(calendar.getTime()));
    }

    CantVisitTheWePageException(String msg){
        super("网站拒绝访问\n" + msg);
        Calendar calendar = Calendar.getInstance();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
        System.out.println(formatter.format(calendar.getTime()));
    }

}
